package com.ruoyi.datastatistics.feign;

import com.ruoyi.system.api.domain.SysDept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "ruoyi-system", contextId = "sysDeptService")
public interface SysDeptService {

    @GetMapping("/dept/Byid/{deptId}")
    SysDept selectDeptById(@PathVariable("deptId") Long deptId);

    @GetMapping("/dept/Byname/{deptName}")
    SysDept selectDeptByName(@PathVariable("deptName") String deptName);
}
